package com.sjms._02_创建_工厂方法;

abstract class Coffee {
    String name;

    public Coffee(String name) {
        this.name = name;
        //准备材料
        materials();
        //生产
        produce();
    }

    //准备材料
    abstract void materials();

    //生产
    abstract void produce();
}